<?php


namespace app\common\model;


class Banner extends BaseModel
{
    /**
     * 首页轮播图
     */
    public static function getBanners($type)
    {
        return self::where(static::whereOnline())->order(static::WEIGH_DESC)->where('type', $type)->select();
    }
}